package org.wxd.elastic.job.consumer.web;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wxd.elastic.job.api.DemoApi;

@RestController
public class DemoController {

    @Reference(version = "1.0.0")
    DemoApi demoApi;

    @GetMapping("/say")
    public String say(String str){
        return demoApi.say(str);
    }
}
